<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <base th:href="@{/}">
    <meta charset="UTF-8">
    <title>商品详情页</title>
    <link rel="stylesheet" href="css/bootstrap.min.css"/>
</head>
<body>
    <!-- 加载header.html -->
    <div th:include="admin/header"></div>
    <br><br><br>
    <section class="home-section">
        <div class="home-content">
            <i class='bx bx-menu'></i>
            <span class="text">管理员界面</span>
        </div>
        <div class="test">
            <div class="container">
                <div class="panel panel-primary" style="border-radius: 0px 0px 25px 25px">
                    <div class="panel-heading" style="background-color: rgba(85,81,133,0.6);">
                        <h3 class="panel-title">商品详情</h3>
                    </div>
                    <div class="panel-body">
                        <div class="table table-responsive">
                            <table class="table  table-hover table-bordered  	table-striped">
                                <tbody class="text-center">
                                <tr>
                                    <th style="text-align: center">商品名称</th>
                                    <td th:text="${goods.gname}"></td>
                                </tr>
                                <tr>
                                    <th style="text-align: center">商品原价</th>
                                    <td th:text="${goods.goprice}"></td>
                                </tr>
                                <tr>
                                    <th style="text-align: center">商品折扣价</th>
                                    <td th:text="${goods.grprice}"></td>
                                </tr>
                                <tr>
                                    <th style="text-align: center">商品库存</th>
                                    <td th:text="${goods.gstore}"></td>
                                </tr>
                                <tr>
                                    <th style="text-align: center">商品图片</th>
                                    <td style="text-align: center">
                                        <img th:src="${goods.gpicture}"
                                             style="height: 50px; width: 50px; display: block; text-align: center">
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

</body>
</html>
